import { number } from "echarts";
import { Context } from "koa";
import SysRoleMenuServer from "../../server/Sys/SysRoleMenuServer";
/*
 * @Author: fishroom
 * @Date: 2022-10-21 16:03:19
 * @LastEditTime: 2022-10-21 17:03:26
 * @FilePath: \koa\app\controller\Sys\SysRoleMenuController.ts
 */
class SysRoleMenuController {
  async getRoleMenuListById(ctx: Context) {
    let id = ctx.query["role_id"];
    console.log(id);

    let data = await SysRoleMenuServer.getRoleMenuListById(Number(id));
    console.log(data);
  }
  async updateRoleMenuById(ctx: Context) {
    let obj = ctx.request.body;
    console.log(obj);
    // await SysRoleMenuServer.updataRoleMenuListById()
  }
}
export default new SysRoleMenuController();
